<%@ page pageEncoding="UTF-8" %>
<%@ include file="../common/IncludeTop.jsp"%>

<script type="text/javascript" src="${pageContext.request.contextPath}/js/order.js" ></script>

<div id="BackLink">
    <a href="main">返回主菜单</a>
</div>

<div id="Catalog">

    <form action="viewContinueOrder" method="post">

        <table>
            <tbody>
            <tr>
                <th colspan=2>支付手段</th>
            </tr>
            <tr>
                <td>银行卡：</td>
                <td><select name="order.cardType">
                    <option value="Visa">Visa</option>
                    <option value="MasterCard">MasterCard</option>
                    <option value="American Express">American Express</option>
                </select></td>
            </tr>
            <tr>
                <td>卡号：</td>
                <td><input name="order.creditCard" type="text" /></td>
            </tr>
            <tr>
                <td>配送日期：</td>
                <td><input name="order.expiryDate" type="text" /></td>
            </tr>
            <tr>
                <th colspan=2>订单地址</th>
            </tr>

            <tr>
                <td>名：</td>
                <td><input name="order.firstName" type="text" value="${sessionScope.loginAccount.firstName}" /></td>
            </tr>
            <tr>
                <td>姓：</td>
                <td><input name="order.lastName" type="text" value="${sessionScope.loginAccount.lastName}" /></td>
            </tr>
            <tr>
                <td>地址一：</td>
                <td><input size="40" name="order.address1" type="text" value="${sessionScope.loginAccount.address1}" /></td>
            </tr>
            <tr>
                <td>地址二：</td>
                <td><input size="40" name="order.address2" type="text" value="${sessionScope.loginAccount.address2}" /></td>
            </tr>
            <tr>
                <td>城市：</td>
                <td><input name="order.city" type="text" value="${sessionScope.loginAccount.city}" /></td>
            </tr>
            <tr>
                <td>州：</td>
                <td><input name="order.state" type="text" value="${sessionScope.loginAccount.state}" /></td>
            </tr>
            <tr>
                <td>邮政编码：</td>
                <td><input name="order.zip" type="text" value="${sessionScope.loginAccount.zip}" /></td>
            </tr>
            <tr>
                <td>国家：</td>
                <td><input name="order.country" type="text" value="${sessionScope.loginAccount.country}" /></td>
            </tr>
            </tbody>
            <tfoot id="shipInfo">
                <tr>
                    <th colspan=2>收货地址</th>
                </tr>

                <tr>
                    <td>名：</td>
                    <td><input name="ship.firstName" type="text"/></td>
                </tr>
                <tr>
                    <td>姓：</td>
                    <td><input name="ship.lastName" type="text"/></td>
                </tr>
                <tr>
                    <td>地址一：</td>
                    <td><input size="40" name="ship.address1" type="text"/></td>
                </tr>
                <tr>
                    <td>地址二：</td>
                    <td><input size="40" name="ship.address2" type="text"/></td>
                </tr>
                <tr>
                    <td>城市：</td>
                    <td><input name="ship.city" type="text"/></td>
                </tr>
                <tr>
                    <td>州：</td>
                    <td><input name="ship.state" type="text"/></td>
                </tr>
                <tr>
                    <td>邮政编码：</td>
                    <td><input name="ship.zip" type="text"/></td>
                </tr>
                <tr>
                    <td>国家：</td>
                    <td><input  name="ship.country" type="text"/></td>
                </tr>
            </tfoot>
        </table>

        <input type="checkbox" name="checkBox" value="配送到其他地址"
                             onchange="change()">配送到其他地址<br>
        <font color="red">${requestScope.orderMsg}</font><br>
        <input name="newOrder" type="submit" value="继续" />

        </form>

</div>

</div>

<%@ include file="../common/IncludeBottom.jsp"%>